package com.wj.rpsm.user.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author WeiJin
 * @version 1.0
 */
@Repository
public interface FloorMapper {

    /**
     * 根据楼层id获取所属楼栋id
     * @param floorId
     * @return
     */
    @Select("select belong_building from floor where floor_id = #{floorId}")
    Integer getBelongBuildingByFloorId(Integer floorId);
}
